package com.virtual.repository.common.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Class representing the <strong>parameter</strong> element from configuration file, which
 * is placed inside <strong>data-source</strong> element.  
 * It stores information about single parameter needed to configure connection to appropriate database.
 * 
 * @author kchaber
 */
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name = "parameter")
public class Parameter implements Serializable {
	private static final long serialVersionUID = 549290603592085453L;

	/**
	 * The name of the parameter
	 */
	@XmlElement
	private String name;
	
	/**
	 * The parameter's value
	 */
	@XmlElement
	private String value;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + " [name=" + name + ", value=" + value + "]";
	}
}
